package com.yzy.baselibrary.base.repository

/**
 *description: Repository基类.
 *@date 2018/10/15 16:20.
 *@author: YinZeYu.
 */

open class BaseRepository<T : IRemoteDataSource, R : ILocalDataSource>(
    val remoteDataSource: T,
    val localDataSource: R
) : IRepository

open class BaseRepositoryLocal<T : ILocalDataSource>(
    val remoteDataSource: T
) : IRepository

open class BaseRepositoryRemote<T : IRemoteDataSource>(
    val remoteDataSource: T
) : IRepository

open class BaseRepositoryNothing() : IRepository